package com.zhoukx.observer;

public class InternetWeather {
    public static void main(String[] args) {
        // 创建介入方
        CurrentConditions currentConditions = new CurrentConditions();
        //  创建weatherData 并将接入方
        WeatherData weatherData = new WeatherData(currentConditions);
        // 更新天气情况
        weatherData.setData(30, 150, 40);
    }
}
